<?php
// +----------------------------------------------------------------------
// | 跃飞 [ 将来的你一定会感激现在奋斗的自己 ]
// +----------------------------------------------------------------------
// | Author: 钟贵廷
// +----------------------------------------------------------------------
// | Author URI: https://git.oschina.net/yeafy
// +----------------------------------------------------------------------
// | weChat:gt845272922  qq:845272922
// +----------------------------------------------------------------------


namespace app\home\controller;


use app\yeafy\abstractFactory\demo2\BatchOrderFactory;
use think\Controller;

class abstractFactory extends Controller
{
        public function order()
        {
            $batchOrderFactory = new BatchOrderFactory();
            $refurbishBatchOrderModel = $batchOrderFactory->getRefurbishedInstance();
            $refurbishBatchOrderModel->quotedPrice();
            $repairBatchOrderModel = $batchOrderFactory->getRepairInstance();
            $repairBatchOrderModel->create();
            $repairBatchOrderModel->quotedPrice();
        }
}